Shows the room from inside: every solid tile is a wall, drawn in the picture you name, and the floor and ceiling are flat colors. Call it once, in the Create event of the object that runs the view.
Game Boy: not available
Game Boy Color: not available
On other consoles this differs: see Side by side and How the consoles differ.
view3d_start(walls)| Name | Type |
|---|---|
walls | tileset |
Nothing.
Shows the room from inside, as a 3D view: every solid tile is a wall, drawn from the wall pictures you name, and the floor and the ceiling are flat colors.
The one argument is the picture that holds the wall pictures (a picture in your Tilesets, for example ts_walls). It is cut into squares of 32 by 32 pixels, 8 across, read left to right and top to bottom, so a picture 256 pixels wide and 256 tall holds up to 64 walls. See Making 3D walls.
Call it once, in the Create event of the object that runs the view. Then:
view3d_camera, or walk it with view3d_move and view3d_turn.// Create event of the object that runs the view.
view3d_start(ts_doc_walls);
view3d_camera(100, 100, 0);The room is drawn from inside, from the middle of the second tile row, looking right.
The argument is the Tileset picture that holds the wall pictures: 32 by 32 pixels each, 8 across and as many rows as needed, read left to right and top to bottom (a picture of 256 by 256 pixels holds up to 64). A solid tile’s number in the room’s tile set picks the picture, wrapping round when the number is past the last picture. Every other tile is open floor, and the room’s edges are walls. The view takes over the whole screen: the room’s own pictures are put away, and they do not come back until the room is entered again. Start it before anything draws a sprite. The camera starts in the middle of the room facing right, with a 66 degree view. The room can be at most 64 by 64 tiles. The view is drawn once a frame after every Draw event, 120 columns wide, each column 2 pixels, by the full height of the screen, with two screens swapped so you never see it half drawn. It runs at 30 frames a second or better on a room of 24 by 24 tiles. Leaving the room ends the view.